other I/O errors.
True
Ignore nonreadable
Specify that the rysnc server ignores all files that the user does not have access. This makes sense when some files in the directories to be backed up should not be obtained by the backup owner.
False
Timeout
This option overwrites the specified IP timeout time. This ensures that the rsync server will not always wait for a crashed client. For anonymous
those of the source file, rsync cannot find them. This is the legendary "pitfall "!
When rsync is smart, the solution is to use the-I option.
[-I option]
-The I option will make rsync very honest, and it will initiate data synchronization from one file.
-The I option ensures data consistency. The cost is that the speed slows down because the "quick check" po
1.RSYNC: Remote sync, support local replication, or synchronize with other SSH and RSYNC hosts.Rsync remote synchronization and CP, SCP function basically consistent, the other two is to copy the source files, if there is new data added, using CP, SCP to the source file all the content is copied, and Rsync is on the basis of the source files only update the newly
Set up rsync Data Synchronization backup and rsync Data Synchronization for Small and Medium-sized Clusters
Important NFS Problems
1. NFS client users write NFS.
1) Why do ordinary users need to write NFS.
2) Add all_squash to exports.What is Rsync?
Rsync is an open-source, fast, and versatile tool that supports full o
Set up rsync Data Synchronization backup and rsync Data Synchronization for Small and Medium-sized Clusters
Important NFS Problems
1. NFS client users write NFS.
1) Why do ordinary users need to write NFS.
2) Add all_squash to exports.What is Rsync?
Rsync is an open-source, fast, and versatile tool that supports full o
filter the specified file, such as--exclude "logs" will be the file name contains logs files or directory filtering, not synchronized-P Large p shows the synchronization process, such as rate,-V more detailed-U update Plus, if the file in dest is newer than SRC, it is out of sync-Z Compression during transferExample: Synchronizing the/tmp/0.txt to the/root/ceshi.txtJoin behind/Third, rsync synchronization
Linux O M and architecture-rsync and linux-rsync
1. rsync IntroductionRsync is a tool for Synchronous backup of full and incremental local or remote data images
Common rsync Command Parameters
Command parameter description-a (-- archive) archive mode indicates that the file is transmitted recursively, and all file att
DST path information contains the ":" separator.6. List of remote machine files. This is similar to rsync transmission, but you only need to omit the local machine information in the command.-A operates in archive mode, copies directories, and symbols to connect-rlptgod
Parameters in rsync
-R is recursion-L indicates a linked file, which means copying a linked file;-P indicates retaining the original permi
machine information in the command.-A operates in archive mode, copies directories, and symbols to connect-rlptgoD
Parameters in rsync
-R is recursion-L indicates a linked file, which means copying a linked file;-p indicates retaining the original permissions of the file;-t indicates retaining the original time of the file;-g indicates retaining the original user group of the file; -o: the original owner of the file;-D is equivalent to a block device
. Create a directory, edit a password file# mkdir/etc/rsync# Vim/etc/rsync/password 123123 #格式是 "Password" # chmod 600/etc/rsync/password #修改密码文件的权限
Parameters of the Rsync synchronization command-V indicates verbose detailed display-Z means compression-R means r
sent, this field records the file's verification code. the default log format is: "% o % h [% a] % m (% u) % f % l". In general, "% t [% p]" is added to the header of each line. In the source code, a perl script program named rsyncstats is released to collect statistics on log files in this format. Timeout overwrites the specified IP timeout value. This option ensures that the rsync server never waits for a crashed client. Timeout is measured in seco
block device file;-Z compression during transmission;-P transmission progress;-V transmission progress and other information. It has something to do with-P. Try it on your own. You can see the document;Scenario 2:# Rsync-avzP -- delete david@172.16.1.135: david home/tmp/david/This time, we introduce the-delete option, indicating that the data on the client must be exactly the same as that on the server. If
Specify that the rysnc server ignores all files that the user does not have access. This makes sense when some files in the directories to be backed up should not be obtained by the backup owner.
False
Timeout
This option overwrites the specified IP timeout time. This ensures that the rsync server will not always wait for a crashed client. For anonymous rsync servers, the ideal number is
temporary resources or other I/O errors.
True
Ignore nonreadable
Specify that the rysnc server ignores all files that the user does not have access. This makes sense when some files in the directories to be backed up should not be obtained by the backup owner.
False
Timeout
This option overwrites the specified IP timeout time. This ensures that the rsync server will not always wait for a crashed client. For anonymous
directly connect to the rsync server. The most common commands for synchronization are as follows:
rsync -avz --progress --delete rsync://rsynctest@10.211.55.11/test/ rsynctarget/
Here, rsynctest is the user name for synchronization and 10.211.55.11 is the ip address of my rsync server. Run the command and enter the p
[% a] % m (% u) % f % l". Generally, "% t [% p]" is added to the header of each line. In the source code, a perl script program named rsyncstats is released to collect statistics on log files in this format. Timeout overwrites the specified IP timeout value. This option ensures that the rsync server will not always wait for a crashed customer. Timeout is measured in seconds. 0 indicates that no timeout is defined. This is also the default value. An i
timeout value. This option ensures that the rsync server never waits for a crashed client. Timeout is measured in seconds. 0 indicates that no timeout is specified. This is also the default value. An ideal number for anonymous rsync servers is 600. Refuse options allows you to define a list of command parameters that cannot be used by customers for this module. The full name of the command must be used. Ho
time. This ensures that the rsync server will not always wait for a crashed client. For anonymous rsync servers, the ideal number is 600 (in seconds ).
0 (unlimited)
Dont compress
Used to specify files that are not compressed before transmission. This option defines a list of Command Options that cannot be used by customers for this module. You must use the full name of the option, not the a
. Timeout is measured in seconds. 0 indicates that no timeout is defined. This is also the default value. An ideal number for anonymous rsync servers is 600.
Refuse options
You can use this option to define a list of command parameters that cannot be used by customers for this module. The full name of the command must be used. However, when a command is rejected, the server reports an error message and then exits. To prevent
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.